package org.lee.android;

import java.util.Date;
public class MatchItem {
    public String mId;
    public String lId;
    public int koTimeUTC;
    public Date koTime;
    public String t1Id;
    public String t1CnName;
    public String t1TrName;
    public String t1EnName;
    public String t1Position;
    public String t2Id;
    public String t2CnName;
    public String t2TrName;
    public String t2EnName;
    public String t2Position;
    public String matchTv;
    public String koDay;
    public Boolean bOver;
    public MatchItem(String infostr)
    {
        String[] infoArr = infostr.split(OddsUntil.SplitColumn);
        this.mId = infoArr[0];
        this.lId = infoArr[1];
        this.koTimeUTC = Integer.parseInt(infoArr[2], 10);
        this.koTime = OddsUntil.ConvertIntDateTime(this.koTimeUTC);
        this.t1Id = infoArr[3];
        this.t1CnName = infoArr[4];
        this.t1TrName = infoArr[5];
        this.t1EnName = infoArr[6];
        this.t1Position = infoArr[7];
        this.t2Id = infoArr[8];
        this.t2CnName = infoArr[9];
        this.t2TrName = infoArr[10];
        this.t2EnName = infoArr[11];
        this.t2Position = infoArr[12];
        this.matchTv = infoArr[13];

        //this.koDay = this.koTime.toString("MM-dd HH:mm");
        this.koDay = this.koTime.toString();
        this.bOver = false;

    

        
    }
    public String ToString()
    {
        StringBuilder sb = new StringBuilder();
        sb.append("mId:" + mId + "\n");
        sb.append("lId:" + lId + "\n");
        sb.append("koTimeUTC:" + koTimeUTC + "\n");
        sb.append("koTime:" + koTime + "\n");
        sb.append("t1Id:" + t1Id + "\n");
        sb.append("t1CnName:" + t1CnName + "\n");
        sb.append("t1TrName:" + t1TrName + "\n");
        sb.append("t1EnName:" + t1EnName + "\n");
        sb.append("t1Position:" + t1Position + "\n");
        sb.append("t2Id:" + t2Id + "\n");
        sb.append("t2CnName:" + t2CnName + "\n");
        sb.append("t2TrName:" + t2TrName + "\n");
        sb.append("t2EnName:" + t2EnName + "\n");
        sb.append("t2Position:" + t2Position + "\n");
        sb.append("matchTv:" + matchTv + "\n");
        sb.append("koDay:" + koDay + "\n");
        sb.append("bOver:" + bOver + "\n");
        return sb.toString();
    }

}
